﻿package com.atn.edamame.tools 
{
	import flash.text.*;
	import flash.display.*;
	import flash.events.*;
	import com.atn.edamame.*;
	import mx.controls.TextInput;
	import mx.controls.Label;
	import mx.core.UIComponent;
	
	 /**
	* ...
	* @author DefaultUser (Tools -> Custom Arguments...)
	*/
	 public class Trash extends EdamameControl
	{
		import org.flashdevelop.utils.FlashConnect;
		
		[Embed(source='../../../../trash_grey_empty.png')]
		private var EmbedImage:Class;
		private var dLabel:Label;
		public override function collide(b: EdamameObject):void
		{
			b.destroy();
		}
		
        public override function init():void {
			
			descriptionLabel = new Label();
            descriptionLabel.text = "Trash";
			descriptionLabel.width = 100;
			descriptionLabel.height = 15;
            addChild(descriptionLabel);
			
			var ui:UIComponent = new UIComponent();
			var img:Bitmap = new EmbedImage() as Bitmap;
			ui.width = 48;
			ui.height = 48;
			ui.addChild(img);
			addChild(ui);
			
			this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
			this.height = 70;
			this.width = 110;

        }
	}	
	
}